<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>支付方式配置</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="/lobsteruiframe/layuiadmin/layui/css/layui.css" rel="stylesheet" />
    <link href="/lobsteruiframe/layuiadmin/style/admin.css" rel="stylesheet" />
    <script src="/lobsteruiframe/layuiadmin/layui/layui.js"></script>

    <script src="/jslib/jquery-3.4.1.min.js"></script>
    <script src="/jslib/lobster.js"></script>

    <script src="../js/payment.js"></script>
</head>


<body>
    <div id="titleview">
    </div>
    <div class="layui-form" id="box">

    </div>
</body>

</html>
<script id="title" type="text/html">
    <div class="layui-tab layui-tab-brief" lay-filter="tabBrief">
        <ul class="layui-tab-title">
            {{# layui.each(d, function(index, item){ }}
            {{# if(index==0){ }}
            <li data-code="{{item.Code}}" class="layui-this">{{item.Name}}</li>
            {{# }else{ }}
            <li data-code="{{item.Code}}">{{item.Name}}</li>
            {{# } }}
            {{# }) }}
        </ul>
    </div>
</script>

<script id="formtmp" type="text/html">
    <div class="layui-card">
        <div class="layui-card-body box">
            <input type="hidden" name="PaymentId" value="{{d.PaymentId}}" />
            <input type="hidden" name="PayType" value="{{d.PayType}}" />
            <input type="hidden" name="SubMchId" value="{{d.SubMchId}}" />
            {{# if(d.PayType!=3){ }}
            <div class="layui-form-item active">
                <label class="layui-form-label">AppID</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="AppID" value="{{d.AppID}}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">AppSecret</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="AppSecret" value="{{d.AppSecret}}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">ApiKey</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="ApiKey" value="{{d.ApiKey}}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">商户号</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="MchId" value="{{d.MchId}}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">支付回调地址</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="NotifyUrl" value="{{d.NotifyUrl}}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">退款回调地址</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="RefundNotifyUrl" value="{{d.RefundNotifyUrl}}" />
                </div>
            </div>
            {{# } }}
            <div class="layui-form-item active">
                <label class="layui-form-label">业务支付回调地址</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="BusinessNotifyUrl" value="{{d.BusinessNotifyUrl}}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">业务退款回调地址</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="BusinessRefundNotifyUrl" value="{{d.BusinessRefundNotifyUrl}}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" name="Memo" value="{{d.Memo }}" />
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label">图标：</label>
                <div class="layui-input-block">
                    <input type="hidden" name="ImgUrl" value="{{d.ImgUrl}}" />
                    <div class="layui-upload">
                        <div class="layui-inline">
                            <button type="button" class="layui-btn" id="btnUpload">选择图片</button><input class="layui-upload-file" type="file" accept="" name="file">
                            <i style="color:#999;">图片大小不超过1M</i>
                        </div>
                        <div class="layui-upload-list">
                            <img class="layui-upload-img" name="imgUpload" id="imgUpload" style="width:90px; height:90px" src="{{d.ImgUrl||'../image/service.jpg'}}">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item active">
                <label class="layui-form-label"></label>
                <div class="layui-input-block">
                    {{# if(d.IsUse==1){ }}
                    <input type="checkbox" name="IsUse" title="可用" checked="checked" lay-filter="delflag">
                    {{# }else{ }}
                    <input type="checkbox" name="IsUse" title="可用" lay-filter="delflag">
                    {{# } }}
                </div>
            </div>
        </div>
    </div>
</script>